<!-- INCLUDE overall_header.html -->

<h1>Calendrier</h1>

<table border="0" cellpadding="5" cellspacing="1" width="100%" style="background-color:#999999;">
	<tr>
		<td colspan="2" width="100%" class="tablecalsmall">
			<table border="0" cellpadding="0" cellspacing="0" width="100%">
				<tr>
					<td width="25%" align="left"><a href="date.php?date={PREVIOUS_DATE}"><input type="button" value="&laquo; jour pr&eacute;c&eacute;dent"></a></td>
					<td width="50%" align="center"><b>{DATE_COURANTE}</b></td>
					<td width="25%" align="right">
						<!-- IF NEXT_DATE -->
							<a href="date.php?date={NEXT_DATE}"><input type="button" value="jour suivant &raquo;"></a>
						<!-- ENDIF -->
					</td>
				</tr>
			</table>
		</td>
	</tr>
	<!-- BEGIN cats -->
		<!-- IF cats.S_ROW_COUNT % 2 == 0 -->
			<!-- IF not(cats.S_FIRST_ROW) -->
				</tr>
			<!-- ENDIF -->
			<tr valign="top">
		<!-- ENDIF -->
		<td  width="50%" style="background-image:url(../images/home/bg.gif);" valign="top">
			<table border="0" cellpadding="0" cellspacing="0" width="100%">
				<tr>
					<td style="background-image:url(<? echo $rep; ?>images/calendar/bg_{cats.TYPE_COLOR}.gif); background-position:top right; background-repeat:no-repeat; padding:0px 0px 0px 0px; margin:0px 0px 0px 0px;">
						<img src="<? echo $rep; ?>images/spacer.gif" width="1" height="120" alt="&nbsp;" align="right">
						<div align="center"><b>{cats.TYPE_NAME}</b></div>
						<!-- BEGIN events -->
							<u>{events.EVENT_NOM}</u><br><div align="center"><i>{events.EVENT_DESCRIPTION}</i></div>
						<!-- END events -->
						<!-- IF cats.TYPE_NAME == "DMI" -->
							<!-- BEGIN annifs -->
								<u>Anniversaire de {annifs.USERNAME}</u>
							<!-- END annifs -->
						<!-- ENDIF -->
					</td>
				</tr>
			</table>
		</td>
	<!-- END cats -->
	</tr>
	<tr>
		<td width="100%" colspan="2" class="tablecalsmall">
			<table border="0" cellpadding="0" cellspacing="0" width="100%">
				<tr>
					<td width="50%" align="left" height="20"><div style="margin:0px 0px 0px 0px; padding:0px 0px 0px 0px; height:20px; float:left;"><img src="../images/calendar/icn_event.png" width="20" height="20"></div> <div style="margin:0px 0px 0px 10px; padding:0px 0px 0px 0px; height:20px; float:left; vertical-align:middle;"><a href="javascript:load()">Ajouter un &eacute;v&eacute;nement</a></div></td>
					<td width="50%" align="right" height="20"><div style="margin:0px 0px 0px 0px; padding:0px 0px 0px 0px; height:20px; float:right;"><img src="../images/calendar/icn_birthday.png" width="20" height="20"></div><div style="margin:0px 10px 0px 0px; padding:0px 0px 0px 0px; height:20px; float:right; vertical-align:middle;"><a href="javascript:load2()">Ajouter votre anniversaire</a></div></td>
				</tr>
			</table>
		</td>
	</tr>
</table>

<Script Language="JavaScript">
function load() {
				var load = window.open('ajouter_date.php?id=<? echo $userdata['user_id']; ?>','','scrollbars=auto,menubar=no,height=400,width=550,resizable=yes,toolbar=no,location=no,status=no');
				}
function load2() {
				var load = window.open('ajouter_anniversaire.php?id=<? echo $userdata['user_id']; ?>','','scrollbars=auto,menubar=no,height=140,width=400,resizable=yes,toolbar=no,location=no,status=no');
				}				
</script>
<!--  INCLUDE overall_footer.html -->
